package com.example.questionnaire.pojo.DO;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;


@Data
@ApiModel("选项类")
public class Options {

    @TableId(type = IdType.UUID)
    @ApiModelProperty("id")
    private String id;

    public Options() {
    }

    public Options(String subjectId, int optionsId, String optionsContent, String jumpQuestion, int optionsType) {
        this.optionsType = optionsType;
        this.subjectId = subjectId;
        this.optionsId = optionsId;
        this.optionsContent = optionsContent;
        this.jumpQuestion = jumpQuestion;
    }

    @ApiModelProperty("选项id")
    private int optionsId;

    @ApiModelProperty("题号")
    private String subjectId;

    @ApiModelProperty("选项分组id")
    private int groupId;

    @ApiModelProperty("允许计分")
    private int isScoring;

    @ApiModelProperty("选项分组内容")
    private String groupName;

    @ApiModelProperty("选项顺序")
    private int optionsType;

    @ApiModelProperty("选项的内容")
    private String optionsContent;

    @ApiModelProperty("允许填空")
    private int fillIn;

    @ApiModelProperty("允许填空的是否必填")
    private int mustFill;

    @ApiModelProperty("跳题")
    private String jumpQuestion;


    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)//在插入的时候自动填充
    private Date createTime;
    @ApiModelProperty("最后更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)////在插入和更新的时候自动填充
    private Date modifiedTime;
    @ApiModelProperty("逻辑删除")
    @TableLogic
    private Integer deleted;

}
